#ifndef PLANE_H
#define PLANE_H

#include "Object.h"

#include <d3d11.h>
#include <dxgi.h>
#include <D3DX10.h>

struct Plane : public Object
{
	Plane();
	Plane(const D3DXVECTOR3& norm, float dist, const Colour& col);

	virtual const D3DXVECTOR3& GetNormalAt(const D3DXVECTOR3& point) override;
	virtual float FindIntersection(const Ray& ray) override;

	D3DXVECTOR3 normal;
	float distance;
};

#endif //SPHERE_H